package com.xbjtech.mapper;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import com.xbjtech.model.Hxm;

public interface HxmMapper {
	
	@Select("select id,hxm,orderId from t_hxm where hxm=#{value}")
	Hxm getHxmByHxmstring(String hxmstring);
	
	@Insert("insert into t_hxm values(null,#{hxm},#{orderId})")
	void insertHxm(Hxm hxm);
	
	@Update("update t_hxm set hxm=#{hxm},orderId=#{orderId} where id=#{id}")
	void updateHxmByPrimaryKey(Hxm hxm);
	
	@Delete("delete from t_hxm where id=#{id}")
	void deleteHxmByPrimaryKey(Long id);

}
